package com.cloudsigns.factorymanager2.produce.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;

import com.cloudsigns.factorymanager2.R;

public class ProduceHandoverStatusInformationAdapter extends BaseAdapter {
    private Context context;

    public ProduceHandoverStatusInformationAdapter(Context context) {
        this.context = context;
    }

    @Override
    public int getCount() {
        return 0;
    }

    @Override
    public Object getItem(int position) {
        return null;
    }

    @Override
    public long getItemId(int position) {
        return position;
    }

    @Override
    public View getView(int position, View view, ViewGroup viewGroup) {
        ViewHolder holder;
        if (null == view) {
            view = LayoutInflater.from(context).inflate(R.layout.item_produce_handover_status_information, null);
            holder = new ViewHolder();
            holder.tv_name = view.findViewById(R.id.tv_name);
            holder.tv_unit = view.findViewById(R.id.tv_unit);
            holder.tv_date = view.findViewById(R.id.tv_date);
            holder.img_arrow_down = view.findViewById(R.id.img_arrow_down);
            holder.tv_qualified_num = view.findViewById(R.id.tv_qualified_num);
            holder.tv_concession_num = view.findViewById(R.id.tv_concession_num);
            holder.tv_concession_reason = view.findViewById(R.id.tv_concession_reason);
            holder.tv_receive_team = view.findViewById(R.id.tv_receive_team);
            holder.tv_receive_people = view.findViewById(R.id.tv_receive_people);
            holder.tv_acceptance_time = view.findViewById(R.id.tv_acceptance_time);

            view.setTag(holder);
        } else {
            holder = (ViewHolder) view.getTag();
        }
        return view;
    }

    static class ViewHolder {
        TextView tv_name;
        TextView tv_unit;
        TextView tv_date;
        ImageView img_arrow_down;
        TextView tv_qualified_num;
        TextView tv_concession_num;
        TextView tv_concession_reason;
        TextView tv_receive_team;
        TextView tv_receive_people;
        TextView tv_acceptance_time;
    }
}
